package com.base.entity.vo;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class OrganizationVo {
    public String id;

    public String isLevel;

    public String name;

    public String agerName;

    public String orderId;

    public String upUnitId;

    public String unitTypeId;

    public String[] unitTypeIdList;

    public String tel;

    public String linkMan;

    public String intro;

    public String standBY1;

    public Date createDate;

    public String startOrderId;

    public String lastOrderId;

    public String code;

    public String subjectId;

    public String approve;

    public String isState;

    public String subjectClassId;

    /** 部门真实ID */
    private String deptRealId;

    @JsonFormat(pattern = "yyyy-MM-dd")
    public Date startDate;

    @JsonFormat(pattern = "yyyy-MM-dd")
    public Date lastDate;

    private Integer pageSize;
    private Integer page;
    private Integer pageStart;

    public void setStart(Integer page, Integer pageSize) {
        this.pageStart = (page - 1) * pageSize;
    }
}
